package beautiful.butterfly.drds.datasource.connection_contexts.api;

import java.math.BigDecimal;
import java.sql.*;


public interface IParameterizedISql extends ISql {

    public IConnectionContext getConnectionContext() throws SQLException;

    public Statement getStatement() throws SQLException;

    public void close() throws SQLException;

    //
    public void addBatch() throws SQLException;

    public int[] executeBatch() throws SQLException;

    //
    public void setNull(int parameterIndex, int sqlType) throws SQLException;

    public void setBoolean(int parameterIndex, boolean x) throws SQLException;

    public void setShort(int parameterIndex, short x) throws SQLException;

    public void setInt(int parameterIndex, int x) throws SQLException;


    public void setLong(int parameterIndex, long x) throws SQLException;

    public void setFloat(int parameterIndex, float x) throws SQLException;

    public void setDouble(int parameterIndex, double x) throws SQLException;

    public void setString(int parameterIndex, String x) throws SQLException;

    public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException;

    public void setDate(int parameterIndex, Date x) throws SQLException;

    public void setTime(int parameterIndex, Time x) throws SQLException;

    public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException;

    public void setObject(int parameterIndex, Object x) throws SQLException;

    public ParameterMetaData getParameterMetaData() throws SQLException;

    public void clearParameters() throws SQLException;

    public int executeUpdate() throws SQLException;

    public IRowDataMapList executeQuery() throws SQLException;

    public ResultSetMetaData getResultSetMetaData() throws SQLException;

}
